﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;

namespace MyVocationSpace.AJAX
{
    public partial class ConnectionRequestReject : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;
            if (Session["UserID"] != null)
            {
                
                if (Request.QueryString["IDConnect"] != null)
                {
                    int Id = Convert.ToInt32(Request.QueryString["IDConnect"]);
                    BAL.Users.UpdateUserConnectionforReject(Id, Convert.ToInt32(Session["UserID"]));
                }

            }
        }
    }
}